.game-main-cover{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(26, 30, 35, 0.95);
  .game-main-title{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
}
.cross-bar-button{
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.5s;

  &::after {
    position: absolute;
    content: "";
    top: 100%;
    left: 0;
    width: 100%;
    height: 3px;
    background: #3498db;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s;
  }

  &:hover {
    color: #95a5a6;
  }

  &:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}
.cross-bar-glitch {
  position: relative;
  opacity: 0;

  .bars {
    $bars-dalay: 0.3s, 0.2s, 0.5s, 0.3s, 0.4s;

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    .bar {
      width: 100%;
      flex: 1;
      background: currentColor;
      border-radius: 50px;
      animation: 0.6s cubic-bezier(0.4, 0.2, 0.175, 1) forwards; // ease-in-out-quartic

      &:nth-child(odd) {
        transform: translateX(100%);
        animation-name: slide-left;
      }

      &:nth-child(even) {
        transform: translateX(-100%);
        animation-name: slide-right;
      }

      @for $i from 1 through 5 {
        &:nth-child(#{$i}) {
          animation-delay: nth($bars-dalay, $i);
        }
      }
    }
  }

  .glitch {
    opacity: 0;
    animation: reveal forwards 0.3s;
    animation-delay: 0.6s;

    span {
      &:not(:last-child) {
        --ratio: calc(100% / var(--slice-count));
        --top: calc(var(--ratio) * (var(--i) - 1));
        --bottom: calc(var(--ratio) * (var(--slice-count) - var(--i)));

        position: absolute;
        white-space: nowrap;
        clip-path: inset(var(--top) 0 var(--bottom) 0);
        animation-duration: 0.3s;
      }

      &:nth-child(odd) {
        animation-name: slide-from-left;
      }

      &:nth-child(even) {
        animation-name: slide-from-right;
      }

      &:last-child {
        opacity: 0;
        animation: reveal steps(1) forwards;
        animation-delay: 0.6s + 0.6s;
      }
    }
  }
}

@keyframes slide-from-left {
  from {
    transform: translateX(-20%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slide-from-right {
  from {
    transform: translateX(20%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
  }
}

@keyframes slide-left {
  to {
    transform: translateX(-100%);
  }
}

@keyframes slide-right {
  to {
    transform: translateX(100%);
  }
}

h1 {
  font-size: 3rem;
  color: white;
}
.game-main-cover{
  .shadow {
    filter: drop-shadow(-2px 2px 8px rgba(50, 50, 0, 0.5));
  }

  .card {
    clip-path: inset(0 0 70% 0);
    transform: translateY(30%);
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);

    .card-header {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 600px;
      height: 120px;
      font-size: 2em;
      color: white;
      background:linear-gradient(#243949, #3b5b78);
      border-radius: 20px 20px 0 0;
      clip-path: inset(0 19% 0 19%);
      transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }

    .card-body {
      box-sizing: border-box;
      padding: 1.25em;
      width: 600px;
      height: 275px;
      font-size: 1.5em;
      background: #e6e6e6;
      clip-path: inset(0 19% 0 19%);
      transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
      border-radius: 0 0 20px 20px;

      dl {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
        height: 100%;
        margin: 0;
      }

      span {
        opacity: 0;
        transform: translateY(100%);
        transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);

        @for $i from 1 through 3 {
          &:nth-child(#{$i}) {
            transition-delay: $i * 0.1s;
          }
        }

        dt,
        dd {
          display: inline;
          margin: 0;

          svg {
            margin-right: 0.3em;
          }
        }
      }
    }

    &:hover {
      transform: translateY(0);
      clip-path: inset(0 0 0 0);

      .card-header,
      .card-body {
        clip-path: inset(0 0 0 0);
      }

      span {
        opacity: 1;
        transform: translateY(0);
      }
    }
  }

  .btn-share {
    --btn-inner-color: #E6E9ED;
    --btn-overlay-color: #1F1E1E;
    --icon-color: #1c1d2a;
    position: relative;
    display: flex;
    font-size: 100%;
    font-family: Lato, sans-serif;
    color: white;
    letter-spacing: 2px;
    background: var(--btn-inner-color);
    border: none;
    border-radius: 80px;
    outline: none;
    cursor: pointer;
    overflow: hidden;
    width: 215px;
    height: 40px;
    line-height: 40px;
    transform: rotate(0);
    transition: 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);

    .btn-overlay {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 215px;
      height: 40px;
      background: var(--btn-overlay-color);
      border-radius: inherit;
      transition: 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }

    section {
      padding: 0 14px;
      color: var(--icon-color);
      opacity: 0;
      transform: translateX(-100%);
      transition: 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);

      @for $i from 1 through 4 {
        &:nth-child(#{$i}) {
          transition-delay: 1s - 0.2s * ($i - 1);
        }
      }
    }

    &:hover {
      transform: scale(1.1);

      .btn-overlay {
        transform: translateX(-100%);
        transition-delay: 0.25s;
      }

      section {
        opacity: 1;
        transform: translateX(0);
      }
    }
  }
  .last-button{
    width: 100%;
    display: flex;
    justify-content: center;
  }
}
